package com.example.service.impl;

import com.example.entity.vo.BomcaVo;
import com.github.pagehelper.Page;
import com.example.entity.vo.InvmbVo;
import com.example.entity.yifei.Bomca;
import com.example.mapper.BomcaMapper;
import com.example.mapper.InvmbMapper;
import com.example.service.BomcaService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-02-26
 */
@Service
public class BomcaServiceImpl extends ServiceImpl<BomcaMapper, Bomca> implements BomcaService {
    @Resource
    private BomcaMapper bomcaMapper;

    @Resource
    private InvmbMapper invmbMapper;

    @Override
    public Page<InvmbVo> invmbPage(Integer current,Integer size,String ph,String pm,Character zt) {
        PageHelper.startPage(current,size);
        Page<InvmbVo> page = bomcaMapper.invmbSelectPge(ph,pm,zt);
        return page;
    }

    @Override
    public List<BomcaVo> selectByPh(String ph) {
        List<BomcaVo>  list = bomcaMapper.selectPh(ph);
        return list;
    }
}
